proc pub_topic {nick chan botnet host} {
global botnick home bcast
if {![botisop $chan]} {
  putquick "NOTICE $nick :\0034ERROR - Bot dosen't have op status (+o) in $chan"
  return 0	
  }
if {$botnet == ""} {
  set topic ""
  putlog "!$nick ($host)! topic $chan ''"
  putquick "NOTICE $nick :Sucessfully set topic to '' on $chan"
if {$bcast == "1"} {
  putquick "PRIVMSG $home :\002$nick\002 ($host) removed topic for $chan"
  }
  putquick "TOPIC $chan :$topic"
  return 0
  }
  putlog "!$nick ($host)! topic $chan $botnet"
  putquick "TOPIC $chan :$botnet"
  putquick "NOTICE $nick :Sucessfully set topic to '\002$botnet\002' on $chan"
if {$bcast == "1"} {
  putquick "PRIVMSG $home :\002$nick\002 ($host) set topic for $chan to: $botnet"
  }
  return 0
  }









